import request from '@/utils/request'

/** *
 * 详情
 * @param data
 */
function detail(data) {
  return request({
    url: '/sapi/app/product/detail',
    method: 'post',
    data: data
  })
}

function remove(data) {
  return request({
    url: '/sapi/app/product/remove',
    method: 'post',
    data: data
  })
}

function page(data) {
  return request({
    url: '/sapi/app/product/page',
    method: 'post',
    data: data
  })
}

function add(data) {
  return request({
    url: '/sapi/app/product/add',
    method: 'post',
    data: data
  })
}

function edit(data) {
  return request({
    url: '/sapi/app/product/edit',
    method: 'post',
    data: data
  })
}

export default {
  detail,
  edit,
  add,
  page,
  remove
}
